package com.hmall.mapper;

import com.hmall.model.XtxUserLike;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface XtxUserLikeMapper extends MyMapper<XtxUserLike> {
    Integer selectCountByTypeAndLikeId(@Param("type") Integer type,@Param("likeId") Integer likeId);

    XtxUserLike selectByUserIdAndTypeAndLikeId(@Param("userId") Integer userId,@Param("type") Integer type,@Param("likeId") Integer likeId);

    Integer selectArticleCountByUserId(@Param("userId") Integer userId);

    Integer selectCommentCountByUserId(@Param("userId")Integer userId);

    Integer selectCommentDetailCountByUserId(@Param("userId")Integer userId);
}